package com.heima.controller;

import com.heima.dto.LoginDto;
import com.heima.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private LoginService sysLoginService;

    @PostMapping("/login")
    public String login(@RequestBody LoginDto loginDto) {
        return sysLoginService.login(loginDto);
    }

}
